package com.fzz.learning_forum.service;

import com.fzz.learning_forum.domain.Admin;
import com.fzz.learning_forum.domain.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface AdminService {

    //管理员登录
    public Admin adminLogin(String adminName,String password);

    //查询所有用户
    public PageInfo<User> selectUserWithPage(Integer page,Integer count);

    //根据id删除用户
    public Integer deleteUserById(Integer id);

    //根据id授权用户
    public Integer empowerUserById(Integer id);

    //根据id禁用动态
    public Integer deleteArticleById(Integer id);

    //根据id授权动态
    public Integer empowerArticleById(Integer id);
}
